package day20170413;

public class ChilEntity extends FatherEntity{
	
	/**
	 * 重写父类的玩手机方法
	 */
	@Override
	public void playPhone(){
		System.out.println("玩子类的智能手机...");
	}
	
	@Override
	public int add(int...args){
		int sum = 0;
		for(int a : args){
			sum = sum + a;
		}
		return sum;
	}
}
